import http from '@/utils/request'


const basePath = process.env.VUE_APP_BASE_TT_USER

// 注册用户
export function register(data) {
    return http({
        url: `${basePath}/authLogin/tt-im/register`,
        method: "post",
        data: data,
        headers: {
            Authorization: "Basic dHQtaW06MTIzNDU2"
        }
    })
}


//查询用户基本信息
export function userInfo() {
    return http({
        url: `${basePath}/sys-auth/userInfo`,
        method: 'get',
    })
}